package tgipl3.easy.bestBowler;

import java.io.IOException;

public class UserMainCode
{
	//Assume following return types while writing the code for this question. 
	public static int output1 = 0;

	public static void GetBestBowlerCount(int input1,String input2)
	{
		String i2[] = input2.substring(1, input2.length() - 1).split(",");
		for(int i = 0; i < i2.length; i++) {
			int sum = 0;
			for(int j = 0; j < i2[i].length(); j++)
				sum += i2[i].charAt(j);
			if(sum * 1.0/i2[i].length() >= 53.0)
				output1++;
		}
	}
	
	public static void main(String[] args) throws IOException {
    	String input = "5:{2210011,1115422363,4645637468,023013,1323402022}";
    	String[] inputs = input.split(":");
    	GetBestBowlerCount(Integer.parseInt(inputs[0]), inputs[1]);
    	System.out.println(output1);
	}
}